package a01排序题demo1;

public class Test2 {
    public static void main(String[] args) {
        String s1 = "a";
        String s2 = "b";
        int i = s1.compareTo(s2);
        System.out.println(i);//-1 返回两个字符串ASCII码值的差
        // 字符串s1比字符串s2小 比较两个字符串对应的ascii码值
    }
}
